<?php
	extract($_POST);
  	require('db.php');
  	$sql = "SELECT * FROM dextrob_user WHERE login LIKE '".$login."'";
  	$req = mysql_query($sql) or die($alerte = "-1");//or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
	$data = mysql_num_rows($req);
	if($data == 0){
		echo "0";
	}else{
		echo "1";
	}
?>